<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body class="">
	<div class="d-1 tab70">
		<h2 class="h2-ac">辅助检查</h2>

		<div class="d-b1">
		      <form name="supplementForm1" onsubmit="return false;">
				<input type="hidden" name="cpSupplement.suppId" value="${cpSupplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<div>
					<p>
						肠镜结果：
						<span class="ml-10">
						<input class="ml-10" type="radio" name="cpSupplement.q1" value="1" <c:if test="${cpSupplement.q1 == 1 }"> checked="checked"</c:if> />阴性
						<input class="ml-10" type="radio" name="cpSupplement.q1" value="2" <c:if test="${cpSupplement.q1 == 2 }"> checked="checked"</c:if> />阳性（阳性者填写以下具体肠镜结果）</span>
					</p>
					<p>
						息肉的部位：
						<span class="ml-10">
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_1" value="1" <c:if test="${cpSupplement.q5_1 == 1 }"> checked="checked"</c:if> />直肠
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_2" value="1" <c:if test="${cpSupplement.q5_2 == 1 }"> checked="checked"</c:if> />乙状结肠
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_3" value="1" <c:if test="${cpSupplement.q5_3 == 1 }"> checked="checked"</c:if> />降结肠
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_4" value="1" <c:if test="${cpSupplement.q5_4 == 1 }"> checked="checked"</c:if> />横结肠
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_5" value="1" <c:if test="${cpSupplement.q5_5 == 1 }"> checked="checked"</c:if> />升结肠
						<input class="ml-10" type="checkbox" name="cpSupplement.q5_6" value="1" <c:if test="${cpSupplement.q5_6 == 1 }"> checked="checked"</c:if> />全结肠</span>
					</p>
					<p>
						息肉的数量（具体数量）：
						<span class="ml-10">
							<input class="ml-10" type="text" name="cpSupplement.q10" value="${cpSupplement.q10 }"/>
						</span>
					</p>
					<p>
						息肉的病理类型：
						<span class="ml-10">
							<input class="ml-10" type="text" name="cpSupplement.q15" value="${cpSupplement.q15 }"/>
						</span>
					</p>
					<p>
						息肉（最大者）大小（cm）：
						<span class="ml-10">
							<input class="ml-10" type="text" name="cpSupplement.q20" value="${cpSupplement.q20 }"/>
						</span>
					</p>
					<p>
						是否伴有异型增生：
						<span class="ml-10">
							<input type="radio" name="cpSupplement.q25" value="1" <c:if test="${cpSupplement.q25 == 1 }"> checked="checked"</c:if> />是
							<input type="radio" name="cpSupplement.q25" value="2" <c:if test="${cpSupplement.q25 == 2 }"> checked="checked"</c:if> />否
						</span>
					</p>
					<p>
						粘膜情况：
						<span class="ml-10">
							<textarea rows="5" cols="100" name="cpSupplement.q30">${cpSupplement.q30 }</textarea>
						</span>
					</p>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave1()">保存</a>
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm2" onsubmit="return false;">
				<input type="hidden" name="cpSupplement.suppId" value="${cpSupplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<div>
					<p>
						其它辅助检查：
					</p>
					<p class="ml-10">
						TC:<input class="mt-3 ml-10" type="text" name="cpSupplement.q35" value="${cpSupplement.q35 }"><br/>
						LDL-C:<input class="mt-3 ml-10" type="text" name="cpSupplement.q40" value="${cpSupplement.q40 }"><br/>
						HDL-C:<input class="mt-3 ml-10" type="text" name="cpSupplement.q45" value="${cpSupplement.q45 }"><br/>
						TG:<input class="mt-3 ml-10" type="text" name="cpSupplement.q50" value="${cpSupplement.q50 }"><br/>
						UA:<input class="mt-3 ml-10" type="text" name="cpSupplement.q55" value="${cpSupplement.q55 }"><br/>
						总胆红素:<input class="mt-3 ml-10" type="text" name="cpSupplement.q60" value="${cpSupplement.q60 }"><br/>
						CEA:<input class="mt-3 ml-10" type="text" name="cpSupplement.q65" value="${cpSupplement.q65 }"><br/>
						CA125:<input class="mt-3 ml-10" type="text" name="cpSupplement.q70" value="${cpSupplement.q70 }"><br/>
						CA199:<input class="mt-3 ml-10" type="text" name="cpSupplement.q75" value="${cpSupplement.q75 }"><br/>
						CRP:<input class="mt-3 ml-10" type="text" name="cpSupplement.q80" value="${cpSupplement.q80 }"><br/>
						HP感染:<input class="mt-3 ml-10" type="text" name="cpSupplement.q85" value="${cpSupplement.q85 }"><br/>
					</p>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave2()">保存</a>		      	
		      </form>
		</div>
	</div>
	<script type="text/javascript">
		function supplementSave1() {
			$(supplementForm1).form('submit',{
				url: __MANAGER+'cokicpolypDoc_supplementSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave2() {
			$(supplementForm2).form('submit',{
				url: __MANAGER+'cokicpolypDoc_supplementSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave3() {
			$(supplementForm3).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave3.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave4() {
			$(supplementForm4).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave4.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave5() {
			$(supplementForm5).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave5.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave6() {
			$(supplementForm6).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave6.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
	</script>
</body>
</html>
